<!DOCTYPE html>
<html>
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0"/>
  <title>角色分配</title>
  <link rel="stylesheet" href="${request.contextPath}/static/lib/miniui/themes/default/miniui.css">
  <link rel="stylesheet" href="${request.contextPath}/static/lib/font-awesome/css/font-awesome.css">
  <link rel="stylesheet" href="${request.contextPath}/static/lib/miniui/themes/icons.css">
  <link rel="stylesheet" href="${request.contextPath}/static/lib/miniui/css/role-form.css">
</head>
<body>

<div class="mini-splitter" style="width:100%;height:calc(100% - 27px);">
  <div class="ui-sidebar" size="300" showCollapseButton="true">
    <div class="mini-toolbar">
      <div class="text-center">角色列表</div>
    </div>
    <div class="mini-fit">
      <div id="roleGrid" class="mini-datagrid" style="width:100%;height:100%;" onselectionchanged="selectionRole"
           idField="id" allowResize="true" multiSelect="true" autoload="true" dataField="rows">
        <div property="columns">
          <div type="checkcolumn"></div>
          <div field="code" allowSort="true">系统编码</div>
          <div field="name" allowSort="true">系统名称</div>
        </div>
      </div>
    </div>
  </div>

  <div class="ui-content" showCollapseButton="true">
    <div class="mini-fit">
      <div id="table" class="mini-datagrid" style="width:100%;height:100%;" borderStyle="border:0"
           multiSelect="true" idField="tenantId" totalField="total"
           showFilterRow="false" dataField="rows" autoload="true">
        <div property="columns">
          <div type="checkcolumn"></div>
          <div field="id" width="30">ID</div>
          <div field="name">名称</div>
          <div field="icon" renderer="iconRenderer">图标</div>
          <div field="code">编码</div>
        </div>
      </div>
    </div>
  </div>
</div>

<div class="mini-toolbar">
  <input class="btn-toolbar" id="save" type="button" value="保存"/>
  <input class="btn-toolbar" type="reset" value="重置"/>
</div>

<script src="${request.contextPath}/static/lib/miniui/js/jquery.js"></script>
<script src="${request.contextPath}/static/lib/miniui/js/miniui.js"></script>
<script src="${request.contextPath}/static/lib/miniui/js/common.js"></script>
<script src="${request.contextPath}/static/app/js/role/role-form.js"></script>
</body>
</html>